<style type="text/css">
    .mobile-header {
        position: fixed;
        height: 60px;
        width: 100%;
        line-height: 60px;
        left:0;
        top:0;
        z-index: 99;
        background-color: #fff;
        transition: all 0.3s;
        border-bottom: 2px solid #eee;
    }
    .mobile-header img {
        float:left;
        margin-top: 12px;
    }
    .header{
        position: fixed;
        height: 60px;
        width: 100%;
        line-height: 60px;
        left:0;
        top:0;
        z-index: 99;
        background-color: #fff;
        transition: all 0.3s;
        border-bottom: 2px solid #eee;
    }
    .logo{
        text-align: right;
    }
    .logo img{
        width: 135px;
    }
    .layui-nav-child dd {
        height: 36px;
        line-height: 36px;
    }
</style>

<div class="mobile-header" style="display: none">
    <div class="container-fluid">
        <div class="layui-container">
            <div class="layui-row">
                <div class="layui-col-md2">
                    <div class="logo">
                        <img id="logo-header" src="{$static}images/logo.png" />
                    </div>
                </div>
                <div class="layui-col-md10">

                </div>
            </div>
        </div>
    </div>
</div>

<div class="header" style="display: block">
    <div class="container-fluid">
        <div class="layui-container">
            <div class="layui-row">
                <div class="layui-col-md2">
                    <div class="logo">
                        <img id="logo-header" src="{$static}images/logo.png" />
                    </div>
                </div>

                <div class="layui-col-md7">
                    <ul class="layui-nav">
                        <li class="layui-nav-item {if condition="$controller_action eq 'index_index"}layui-this{s/if}"><a href="/"}>首页</a></li>
                        <li class="layui-nav-item {if condition="$controller_action eq 'supersign_index'"}layui-this{/if}""><a href="{:url('superSign/index')}">超级签名</a></li>
                        <li class="layui-nav-item {if condition="$controller_action eq 'tools_getudid'"}layui-this{/if}""><a href="{:url('tools/getUdid')}">获取UDID</a></li>
                        <li class="layui-nav-item {if condition="$controller_action eq 'index_agent'"}layui-this{/if}""><a href="{:url('index/agent')}">代理推广</a></li>
                    </ul>
                </div>

                <div class="layui-col-md3">
                    {if condition="$userId eq 0"}
                    <ul class="layui-nav text-right">
                        <li class="layui-nav-item">
                            <a href="{:url('user/login')}">登 录 / 注册</a>
                        </li>
                    </ul>
                    {else /}
                    <ul class="layui-nav">
                        <li class="layui-nav-item">
                            <a href="{:url('mine/index')}">进入控制后台</a>
                        </li>
                    </ul>
                    {/if}
                </div>
            </div>
        </div>
    </div>
</div>
<style type="text/css">
    @media (max-width: 992px) {
        .header {
            display: none !important;
        }
        .mobile-header {
            display: block !important;
        }
    }
</style>